package com.ysqcould.activity.domain;


import com.alibaba.fastjson.JSONArray;
import com.ysqcould.common.annotation.Excel;
import com.ysqcould.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 活动报名展示自定字段对象 t_activity_apply_custom
 * 
 * @author ruoyi
 * @date 2022-06-29
 */
public class ActivityApplyCustom extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 活动id */
    @Excel(name = "活动id")
    private Long activityId;

    /** 自定义字段名称 */
    @Excel(name = "自定义字段名称")
    private String name;

    /** 字段类型 */
    @Excel(name = "字段类型")
    private String type;

    /** 是否必填：0非必填，1必填 */
    @Excel(name = "是否必填：0非必填，1必填")
    private Long required;

    /** 位置排序 */
    @Excel(name = "位置排序")
    private Long place;

    /** 内容（比如复选框数据） */
    @Excel(name = "内容", readConverterExp = "比=如复选框数据")
    private String data;


    private JSONArray domains;
    /** 状态（字典 0正常 1冻结 2删除） */
    @Excel(name = "状态", readConverterExp = "字=典,0=正常,1=冻结,2=删除")
    private Long status;

    /** 活动自定义类型 1 活动报名 2 义工活动 */
    @Excel(name = "活动自定义类型 1 活动报名 2 义工活动")
    private Long customType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public JSONArray getDomains() {
        return domains;
    }

    public void setDomains(JSONArray domains) {
        this.domains = domains;
    }

    public void setActivityId(Long activityId) 
    {
        this.activityId = activityId;
    }

    public Long getActivityId() 
    {
        return activityId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setRequired(Long required) 
    {
        this.required = required;
    }

    public Long getRequired() 
    {
        return required;
    }
    public void setPlace(Long place) 
    {
        this.place = place;
    }

    public Long getPlace() 
    {
        return place;
    }
    public void setData(String data) 
    {
        this.data = data;
    }

    public String getData() 
    {
        return data;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setCustomType(Long customType) 
    {
        this.customType = customType;
    }

    public Long getCustomType() 
    {
        return customType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("activityId", getActivityId())
            .append("name", getName())
            .append("type", getType())
            .append("required", getRequired())
            .append("place", getPlace())
            .append("data", getData())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("status", getStatus())
            .append("customType", getCustomType())
            .toString();
    }
}
